package icu.qx.pbs.mapper;

import java.util.List;

import icu.qx.pbs.domain.PbsProcedureRoute;

/**
 * 工艺路线Mapper接口
 *
 * @author yong
 * @date 2024-06-15
 */
public interface PbsProcedureRouteMapper {
    /**
     * 查询工艺路线
     *
     * @param prouteCode 工艺路线主键
     * @return 工艺路线
     */
    public PbsProcedureRoute selectPbsProcedureRouteByProuteCode(String prouteCode);

    /**
     * 查询工艺路线
     *
     * @param prouteCode 工艺路线主键
     * @return 工艺路线
     */
    public PbsProcedureRoute getPbsProcedureRouteNameByProuteCode(String prouteCode);

    /**
     * 查询工艺路线列表
     *
     * @param pbsProcedureRoute 工艺路线
     * @return 工艺路线集合
     */
    public List<PbsProcedureRoute> selectPbsProcedureRouteList(PbsProcedureRoute pbsProcedureRoute);

    /**
     * 新增工艺路线
     *
     * @param pbsProcedureRoute 工艺路线
     * @return 结果
     */
    public int insertPbsProcedureRoute(PbsProcedureRoute pbsProcedureRoute);

    /**
     * 修改工艺路线
     *
     * @param pbsProcedureRoute 工艺路线
     * @return 结果
     */
    public int updatePbsProcedureRoute(PbsProcedureRoute pbsProcedureRoute);

    /**
     * 删除工艺路线
     *
     * @param prouteCode 工艺路线主键
     * @return 结果
     */
    public int deletePbsProcedureRouteByProuteCode(String prouteCode);

    /**
     * 批量删除工艺路线
     *
     * @param prouteCodes 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePbsProcedureRouteByProuteCodes(String[] prouteCodes);
}
